package com.wd.mylibrary_square.view.activity

import android.content.Intent
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.view.WindowManager
import android.widget.VideoView
import com.wd.mylibrary_square.R

class ConstellationActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_constellation)

        val videoView = findViewById<View>(R.id.video) as VideoView

        val uri = "android.resource://" + packageName + "/" + R.raw.video
        videoView.setVideoURI(Uri.parse(uri))
        videoView.start()

        videoView.setOnCompletionListener {
            startActivity(Intent(this,ZodiacActivity::class.java))
            finish()
        }


    }
}